package com.cyf.db.bean;

import com.cyf.util.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class PiaoTong {

    @ApiModelProperty("id")
    private Integer id;
    @ApiModelProperty("车场id")
    private Integer parkingId;
    @ApiModelProperty("出去记录id")
    private String localInoutparkingId;
    @ApiModelProperty("发票地址链接")
    private String qrcodePath;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("开票金额")
    private String invoiceAmount;
    @ApiModelProperty("发票状态 1.开票成功 2.未开票 3.开票中 4.开票失败")
    private String invoiceStatus;
    @ApiModelProperty("发票请求流水号")
    private String invoiceReqSerialNo;

    private int type;

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        if(StringUtils.isNotBlank(createTime)){
            createTime = DateUtil.formatDateWithoutMillisecond(createTime);
        }
        this.createTime = createTime;
    }
}
